package com.wf.apicommons.entity.MessageBoard;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wf.apicommons.entity.userManagement.UserInformation;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Description: 留言记录
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_leaving_a_message")
public class LeavingAMessage {
    @TableId(value = "id")
    private String ID;
    private UserInformation commenterId;
    private UserInformation recipientId;
    private Integer readStatus;
    private String content;
    @JsonFormat(pattern = "yyyy-MM-dd HH:MM:ss", timezone = "GMT+8")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
    private Integer type;
    private Integer isOperation;

}
